import { Module } from '@nestjs/common';
import { CommunityService } from './community.service';
import { CommunityController } from './community.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Post } from './entities/post.entity';
import { Comment } from './entities/comment.entity';
import { User } from 'src/user/entities/user.entity';
import { PostLike } from './entities/postLikes.entity';
import { CommentLikes } from './entities/commentLikes.entity';
import { DailyCommentStats } from 'src/statistic/entities/dailyCommentStats.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Post,
      Comment,
      User,
      PostLike,
      CommentLikes,
      DailyCommentStats,
    ]),
  ],
  controllers: [CommunityController],
  providers: [CommunityService],
})
export class CommunityModule {}
